package pl.edu.amu.wmi.kino.visualjavafx.model.objects.path;

import pl.edu.amu.wmi.kino.visualjavafx.model.objects.*;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.ArrayList; 

// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.E435A33E-00BB-218D-4EEC-104766C08543]
// </editor-fold> 
public class MoveToPathElement implements PathElement ,java.io.Serializable{

    // Code block for changeListeners support start
    protected PropertyChangeSupport propertySupport= new PropertyChangeSupport(this);
    public void addPropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.addPropertyChangeListener(listener);
    }
    public void removePropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.removePropertyChangeListener(listener);
    }
    // Code block for changeListeners support end

    private ArrayList<Point> mPoints = new ArrayList<Point>();

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.AAD047AD-565B-FF55-9963-09EE248C4B96]
    // </editor-fold> 
    public MoveToPathElement () {
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.4AB3E634-641D-4DAE-C2F2-4545A6BE8106]
    // </editor-fold> 
    @Override
    public ArrayList<Point> getPoints () {
        return this.mPoints;
    }

   

    @Override
    public PathElement shallowClone(){
        MoveToPathElement res = new MoveToPathElement();
        for(Point p : this.mPoints){
            res.mPoints.add(p.clone());
        }
        return res;
    }

}

